package com.efast.dmom.mes.dao.entity;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.efast.dmom.mes.entity.StartWorkEntity;

public interface StartWorkDao {


	List<StartWorkEntity> getStartWorkByPartIdAndOperationId(@Param("partId") long partId,@Param("operationId") long operationId, @Param("user") String user);

	void update(StartWorkEntity workEntity);

	StartWorkEntity getStartWork(@Param("partId") long partId,@Param("operationId") long operationId);

	int save(StartWorkEntity startWorkEntity);

	List<StartWorkEntity> getStartWorkList(StartWorkEntity startWorkEntity);

	void afreshStartWorking(StartWorkEntity startWorkEntity);

	List<StartWorkEntity> getWorkList(StartWorkEntity startWorkEntity);

	List<StartWorkEntity> getStartWorkListByUser(StartWorkEntity startWorkEntity);

	List<StartWorkEntity> getStartWorkListByEquipId(long equipId);

	List<StartWorkEntity> getStartWorkListBySpareId(long spareId);

}
